package com.report.dto.response;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author summer
 * @version 1.0
 * @date 2024/9/1 14:54
 */
@Data
@SearchBean(tables = " sys_log l left join research_member m On l.userId=m.id",orderBy = "l.createTime DESC",autoMapTo = "l")
public class LogRes implements Serializable {

    @DbField("l.userId")
    private Integer memberId;

    @DbField("m.nickName")
    private String nickName;

    @DbField("l.ip")
    private String ip;

    @DbField("l.browserName")
    private String browserName;

    @DbField("l.title")
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DbField("l.createTime")
    private LocalDateTime createTime;
}
